/*
 * UnaryExpression.cpp
 *
 *  Created on: 05/05/2010
 *      Author: rodolfo
 */

#include "UnaryExpression.h"

UnaryExpression::UnaryExpression() :
        Expression ( unExp )
{

}

UnaryExpression::UnaryExpression ( Expression *expression, UnaryOperators op, bool postfixOperator ) :
        expression ( expression ), op ( op ), postfixOperator ( postfixOperator ), Expression ( unExp )
{
}

UnaryExpression::UnaryExpression ( Expression *expression, UnaryOperators op ) :
        expression ( expression ), op ( op ), Expression ( unExp )
{
    postfixOperator = 0;
}

UnaryExpression::~UnaryExpression()
{
	if ( expression != 0 )
	    delete expression;
}
